package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 张志飞
 * @Date: 今天是 2020/9/25     现在是23:31
 */
public interface AddressDao {
    void addAddress(Address address);

    List<Address> findAddress();

    Page<Address> selectByCondition(String queryString);

    void editAddress(Address address);

    Address findById(Integer id);

    long findOrderCountByAddressId(Integer id);

    void delete(Integer id);

    Integer findAddressId(String organizationAddress);

    void addOrder(@Param("address_id") Integer id, @Param("order_id") Integer setmealId);
}
